package top.dark.design.patterns.prototype.deepcopy;

import lombok.ToString;

import java.io.Serializable;

/**
 * Author: Darkn
 * description:
 * Create Time: 2021/4/21 17:47
 */
@ToString
public class DeepCloneableTarget implements Serializable,Cloneable {

    private String cloneName;
    private String cloneClass;
    public DeepCloneableTarget deepCloneableTarget;

    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
















